<head>
<!--[if lt IE 9]>
<script src="asset/js/html5.js"></script>
<script src="asset/js/PIE.js"></script>
<![endif]-->
<!-- jquerytools -->
<script src="<?php echo base_url();?>asset/js/jquery.tools.min.js"></script>
<script src="<?php echo base_url();?>asset/js/jquery.ui.min.js"></script>

<!--[if lte IE 9]>
<link rel="stylesheet" media="screen" href="asset/css/ie.css" />
<script type="text/javascript" src="asset/js/ie.js"></script>
<![endif]-->
</head>
<h2>Menjalankan Service SMS</h2>

<p>Klik tombol di bawah ini untuk menjalankan SMS Service!</p>

<form method="post" action="<?php echo base_url();?>settings/konfigurasi/5/submit">
<input type="submit" name="submit" value="JALANKAN SERVICE SMS"></td></tr>
</form>

<?php
$id = $this->uri->segment(4);
//if ($_POST['submit'])
if ($id == "submit")
  {
   echo "<b>Status :</b><br>";
   echo "<pre>";
   passthru("gammu-smsd -c smsdrc1 -n phone1 -s");
   passthru("gammu-smsd -c smsdrc2 -n phone2 -s");
   echo "</pre>";
  }
?> 				

